package com.rou.im.framework.core.processorstack;

import com.rou.im.framework.core.Request;

/**
 * <p>
 *
 * </p>
 *
 * @author GaoShuangWen
 * @since 2020-04-17 23:48
 */
public interface StackInvocation {

    void invoke(Request request);

/*    private List<Processor> handlers = new ArrayList<>();

    public void addHandler(Processor processor) {
        handlers.add(processor);
    }

    public void invoke(TargetAction action) {
        Iterator<Processor> iterator = handlers.iterator();
        Request invoke = null;
        while (iterator.hasNext()) {
            Processor processor = iterator.next();
            invoke = processor.invoke(RequestContextHolder.getContext().getRequest());
        }
        action.execute(invoke);
    }*/


}
